package z_ksiazki2;

/**
 * Author: Daniel Michalski
 * Date: 14.03.13
 */

public class TwoObservers {
    public static void main(String[] args) {
        BeingWatched observed = new BeingWatched();
        Watcher1 observing1 = new Watcher1();
        Watcher2 observing2 = new Watcher2();

        observed.addObserver(observing1);
        observed.addObserver(observing2);

        observed.counter(10);
    }
}
